<?php

Class Mprofile extends Ci_Model
{
	function __construct()
	{
    	parent:: __construct();
    	$this->load->database();
    }	

    function profile($username)
    {
    	$sql = "select * from pengguna where username = '$username'";
    	return $this->db->query($sql)->row();
    }
}